//
//  ViewController.m
//  keybord
//
//  Created by smile~祚 on 16/11/8.
//  Copyright © 2016年 WZ. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (strong, nonatomic) IBOutlet UITextField *userName;
@end

@implementation ViewController


- (IBAction)In:(id)sender {
    [self.userName becomeFirstResponder];
}

- (IBAction)Out:(id)sender {
    [self.userName resignFirstResponder];
}

- (void)viewDidLoad {
    [super viewDidLoad];
//    UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithTitle:@"收起键盘" style:UIBarButtonItemStylePlain  target:self action:@selector(Out:)];
//    toolbar.items = @[item];
//    self.userName.inputAccessoryView =toolbar;
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
       // Dispose of any resources that can be recreated.
}


@end
